import showData from '../edit/show-data'
import editData from '../edit/edit-data'
import {getTaxesList} from '../../../api/finance-manage-taxes'
export default {
    name: 'resource-manage',
    components: {showData, editData},
    data() {
        return {
            tableData: [
            ],

        }
    },
    mounted() {
        this.getListData()
    },
    methods: {
        getListData() {
            getTaxesList("").then(resp => {
                this.tableData = resp.data.data;
            })
        },
        editData(item) {
            this.$refs.editData.show(item)
        },
        showData(item) {
            this.$refs.showData.show(item)
        },
        handleCancel() {
            this.$refs.editData.dialogVisible = false
            this.getListData()
        }
    }
}
